class SubscribesController < ApplicationController
	skip_before_filter :require_login

	# GET /subscribes/new
	# GET /subscribes/new.xml
	def new
		@subscribe = Subscribe.new

		respond_to do |format|
			format.html # new.html.erb
			format.xml  { render :xml => @subscribe }
		end
	end

	# POST /subscribes
	# POST /subscribes.xml
	def create
		@subscribe = Subscribe.new(params[:subscribe])

		if @subscribe.save
			flash[:notice] = 'User was successfully created.'
			redirect_to root_url
		else
			respond_to do |format|
				format.html { render :action => "new" }
				format.xml  { render :xml => @subscribe.errors, :status => :unprocessable_entity }
			end
		end
	end
end
